
package com.lghutchinson.AppConfig;

import com.lghutchinson.Assignment1.ArrayClassImpl;
import com.lghutchinson.Assignment1.ArrayClassInterface;
import com.lghutchinson.Assignment1.BallPlayerImpl;
import com.lghutchinson.Assignment1.BallPlayerInterface;
import com.lghutchinson.Assignment1.CalculatorImpl;
import com.lghutchinson.Assignment1.CalculatorInterface;
import com.lghutchinson.Assignment1.MaleFemaleImpl;
import com.lghutchinson.Assignment1.MaleFemaleInterface;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
    @Bean(name = "calculator")
    public CalculatorInterface getCalImp(){
        return new CalculatorImpl();
    }
    
    @Bean(name = "ballPlayer")
    public BallPlayerInterface getBallPlayerImpl()
    {
        return new BallPlayerImpl();
    }
    
    @Bean(name = "arrayClass")
    public ArrayClassInterface getArrayClassImpl()
    {
        return new ArrayClassImpl();
    }
    
    @Bean(name = "maleFemale")
    public MaleFemaleInterface getMaleFemaleImpl()
    {
        return new MaleFemaleImpl();
    }
}
